import 'package:huajianshe_app/base/NetworkManager.dart';
import 'package:json_annotation/json_annotation.dart';


part 'BaseResp.g.dart';
/// flutter pub run build_runner build --delete-conflicting-outputs
/// 使用命令 flutter pub run build_runner build 自动生成x.g.dart文件
/// flutter packages pub run build_runner wacth //监控生成文件，如果有改动时自动生成/更新 .g.dart 文件
/// 生成过程中有时会遇到.dart_tool/flutter_gen/pubspec.yaml not found, 这个问题在flutter1.24.x中已经修复，但如果不想升级到1.24
/// 就在.dart_tool下手动新建文件夹flutter_gen,然后把项目的pubspec.yaml文件复制过去
@JsonSerializable()
class BaseResp implements BaseConvert {
  int? code;
  String? msg;
  @JsonKey(name: 'exe_time')
  String? exeTime;

  BaseResp();
  BaseResp.empty();

  factory BaseResp.fromJson(Map<String, dynamic> json) => _$BaseRespFromJson(json);

  @override
  BaseResp parseFromMap(Map<String, dynamic> map) {
    return BaseResp.fromJson(map);
  }

// @override
// Map<String, dynamic> toJson() => _$BaseRespToJson(this);

}

